import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './assets/base.css'
import App from './App.vue'
import router from './router'
// import './assets/ts/setRem'
import 'lib-flexible'
import 'vant/lib/index.css'
import './assets/fonts/iconfont.css'
import {
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  Card,
  Icon,
  Tabbar,
  TabbarItem,
  List,
  PullRefresh,
  NavBar,
  ActionBar,
  ActionBarIcon,
  ActionBarButton,
  Popup,
  Stepper,
  Button,
  Form,
  Field,
  CellGroup,
  SubmitBar,
  Checkbox
} from 'vant'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const app = createApp(App)
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(pinia);
app.use(router)

app
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(Card)
  .use(Icon)
  .use(Tabbar)
  .use(TabbarItem)
  .use(List)
  .use(PullRefresh)
  .use(NavBar)
  .use(ActionBar)
  .use(ActionBarIcon)
  .use(ActionBarButton)
  .use(Popup)
  .use(Stepper)
  .use(Button)
  .use(Form)
  .use(Field)
  .use(CellGroup)
  .use(SubmitBar)
  .use(Checkbox)
app.mount('#app')
